import request from '@/utils/request'
import {LabelSearchType,updateLabelNameType,updateStatusType,saveLabelType} from '@/types/ccc/lable'
export default {
    // ----------------------------------------------------------------------------------
    // 标签管理-获取标签
    getLabelBySearchApi: (data: LabelSearchType) => request.post('/api/getLabelBySearchPage', data),
    // 标签管理-修改标签名
    updateLabelNameApi: (data: updateLabelNameType) => request.post('/api/updateLabelNameById', data),
    // 标签管理-修改标签状态
    updateStatusApi: (data: updateStatusType) => request.post('/api/updateStatusById', data),
    // 标签管理-新增标签
    saveLabelApi: (data: saveLabelType) => request.post('/api/saveLabel', data),
    // 标签管理-删除标签
    delLabelByIdApi: (id: string) => request.post('/api/delLabelById', {id}),
    // -----------------------------------------------------------------------------------------

}